var now = new Date(); var hours = now.getHours(); var psj=0; if (hours >= 7 && hours <= 18){ document.write('